{__NOLAYOUT__}<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>跳转提示</title>
    <link href="__STATIC__/h-ui/css/H-ui.min.css" rel="stylesheet" type="text/css" />
    <link href="__STATIC__/js/Hui-iconfont/1.0.8/iconfont.min.css" rel="stylesheet" type="text/css" />
	<style>
        .page-404{width: 50%;padding: 30px;
			border: 1px solid #efefef;margin: auto;margin-top: 30px;}
         .page-success{color: #308a14;width: 50%;padding: 30px;
			border: 1px solid #efefef;margin: auto;margin-top: 30px;}
	</style>
</head>
<body>
<?php switch ($code) {?>
	<?php case 0:?>
	    <article class="page-404 minWP text-c">
	        <p class="error-title" style="font-size: 40px;"><i class="Hui-iconfont va-m">&#xe688;</i>
	            <span class="va-m" style="font-size: 30px;"> <?php echo(strip_tags($msg));?></span>
	        </p>
	        <p class="jump" style="font-size: 14px;">
			页面自动 <a id="href" href="<?php echo($url);?>" style="color:red;">跳转</a> 等待时间： <b id="wait"><?php echo($wait);?></b>
	        </p>
	        <p class="error-info"><!--您可以：-->
	        	<a href="javascript:;" onclick="history.go(-1)" class="c-primary"> 返回上一页</a>
	            <!--<a href="javascript:;" onclick="history.go(-1)" class="c-primary">&lt; 返回上一页</a>
	            <span class="ml-20">|</span>
	            <a href="{:Url('Index/index')}" class="c-primary ml-20">去首页 &gt;</a>-->
	        </p>
	    </article>
    <?php break;?>
    <?php case 1:?>
    <article class="page-success minWP text-c">
        <p class="error-title" style="font-size: 40px;"><i class="Hui-iconfont va-m">&#xe656;</i>
            <span class="va-m" style="font-size: 30px;"><?php echo(strip_tags($msg));?></span>
        </p>
        <p class="jump" style="font-size: 14px;">
		页面自动 <a id="href" href="<?php echo($url);?>" style="color:#0797ef;">跳转</a> 等待时间： <b id="wait"><?php echo($wait);?></b>
        </p>
    </article>
    <?php break;?>
<?php } ?>
<script type="text/javascript">
	(function(){
		var wait = document.getElementById('wait'),
			href = document.getElementById('href').href;
		var interval = setInterval(function(){
		var time = --wait.innerHTML;
		if(time <= 0) {
			location.href = href;
			clearInterval(interval);
		};
	}, 1000);
	})();
</script>
</body>
</html>
